<?php

class Hooks extends Controller {

	function Hooks()
	{
		parent::Controller();	
		$this->output->enable_profiler(TRUE);
		/*
		 * ------------------------------------------------------
		 *  Instantiate the hooks class
		 * ------------------------------------------------------
		 */
		
		$this->hooks =& load_class('Hooks');
	}
	
	function index()
	{
		print $this->hooks->call('custom_hook', 'call');
		var_dump($this->hooks->remove('custom_hook', 'custom_hook2'));
		print $this->hooks->filter('custom_hook', 'filter');
		$this->hooks->_call_hook('custom_hook_class');
	}
}
